<?php
/**
 * Joomla! 1.5 component ArticleCashRewards
 *
 * @version $Id: view.html.php 2009-05-10 01:47:01 svn $
 * @author Maverick
 * @package views.rejected
 * @subpackage ArticleCashRewards
 * @license GNU/GPL
 * Website: http://www.boddunan.com
 *
 * Review and approve the articles and assign points and cash rewards.
 * Users can see their articles and the points/cash rewards assigned in the front-end module.
 */

// no direct access
defined('_JEXEC') or die('Restricted access');

// Import Joomla! libraries
jimport( 'joomla.application.component.view');
class ArticleCashRewardsViewRejected extends JView {
	
    function display($tpl = null) {

		JToolBarHelper::title("&nbsp;&nbsp;&nbsp;&nbsp;" . JText::_('ArticleCashRewards').': <small><small>[ ' . JText::_('CPANEL_REJECTED') .' ]</small></small>', 'acr-48.png');
		JToolBarHelper::custom('cpanel', 'default.png', 'default.png', JText::_('TITLE_CPANEL'), false);    
		JToolBarHelper::preferences('com_articlecashrewards', '250');

		$model = $this->getModel();
		
		$pagination =& $model->getPagination();
		$result =& $model->getRejectedArticles();
		$params 	= JComponentHelper::getParams('com_articlecashrewards');
		
		$this->assignRef('rows', $result->rows);
		$this->assignRef('lists', $result->lists);
		$this->assignRef('pagination', $pagination);
		$this->assignRef('params', $params);
      
		parent::display($tpl);
    }
}
?>